<?php $this->render("header.php");?>
  <div class="col_left l">
           <div class="col_left_title title_notice pr">
                <a class="more_index pa" href="<?php echo $this->url($this->baseUrl, "article", "list", "id=" . $this->cfg['article_types']['tzgg']['id']);?>"></a>
           </div>
                <ul>
                <?php
                foreach ($this->tzgg as $v){
                	$url = $this->url($this->baseUrl, "article", "show", "id=" . $v['aid']);
                	$time = strtotime($v['pubtime']);
                	$v['t'] = substr($v['pubtime'], 0, 10);
                	$newt = intval($v['keywords']);
                	if (time() - $time < $newt * 24 * 3600)
                		$new = ' <img src="' . $this->baseUrl . '/images/b.png" class="new">';
                	else 
                		$new = '';
                		
                	echo "<li><img src=\"{$this->baseUrl}/images/b.png\" class=\"c2\"><a href=\"{$url}\">{$v['title']} {$new}</a><span class=\"r\">[{$v['t']}]</span></li>";
                }
                ?>
                </ul>
           <div class="col_left_title title_event pr">
                <a class="more_index pa" href="<?php echo $this->url($this->baseUrl, "article", "list", "id=" . $this->cfg['article_types']['xshd']['id']);?>"></a>
           </div>
                <ul><?php
                foreach ($this->xshd as $v){
                	$url = $this->url($this->baseUrl, "article", "show", "id=" . $v['aid']);
                	$time = strtotime($v['pubtime']);
                	$v['t'] = substr($v['pubtime'], 0, 10);
                	$newt = intval($v['keywords']);
                	if (time() - $time < $newt * 24 * 3600)
                		$new = ' <img src="' . $this->baseUrl . '/images/b.png" class="new">';
                	else 
                		$new = '';
                		
                	echo "<li><img src=\"{$this->baseUrl}/images/b.png\" class=\"c2\"><a href=\"{$url}\">{$v['title']} {$new}</a><span class=\"r\">[{$v['t']}]</span></li>";
                }
                ?>
                </ul>
           <div class="col_left_title title_program pr">
                <a class="more_index pa" href="<?php echo $this->url($this->baseUrl, "article", "list", "id=" . $this->cfg['article_types']['xmjh']['id']);?>"></a>
           </div>
                <ul><?php
                foreach ($this->xmjh as $v){
                	$url = $this->url($this->baseUrl, "article", "show", "id=" . $v['aid']);
                	$v['t'] = substr($v['pubtime'], 0, 10);
                	$time = strtotime($v['pubtime']);
                	$newt = intval($v['keywords']);
                	if (time() - $time < $newt * 24 * 3600)
                		$new = ' <img src="' . $this->baseUrl . '/images/b.png" class="new">';
                	else 
                		$new = '';
                		
                	echo "<li><img src=\"{$this->baseUrl}/images/b.png\" class=\"c2\"><a href=\"{$url}\">{$v['title']} {$new}</a><span class=\"r\">[{$v['t']}]</span></li>";
                }
                ?>
                </ul>
         <div class="col_left_b oh"></div>     
    </div>
    
	<div class="col_right l">
			<div class="col_right_title title_media pr">
                <a class="more_index pa"  href="<?php echo $this->url($this->baseUrl, "article", "list", "id=" . $this->cfg['article_types']['mtbd']['id']);?>"></a>
           </div>
           <div class="con_right">
			<ul class="media_right">
			<?php
                foreach ($this->mtbd as $v){
                	$url = $this->url($this->baseUrl, "article", "show", "id=" . $v['aid']);
                	$time = strtotime($v['pubtime']);
                	if (time() - $time < 7 * 24 * 3600)
                		$new = ' <img src="' . $this->baseUrl . '/images/b.png" class="new">';
                	else 
                		$new = '';
                	
                	echo "<li>
					<a href=\"{$url}\"><img src=\"{$this->baseUrl}/images/b.png\" class=\"icon_media_right\" height=\"16px\" width=\"12px\">{$v['title']}</a>
					<p>{$v['afrom']}</p>
				</li>";
                }
                ?>
			</ul>
            </div>
<script language="javascript">
<?php
echo 'var pub_index=0;';
echo 'var arr_pubs = [];';
foreach ($this->arr_pub_data as $v){
$json = json_encode($v);
echo 'arr_pubs.push(' . $json . ');';	
}
$pub = $this->arr_pub_data[0];
?>
</script>
<?php
$first_note = $this->types['publication'];
$v = current($first_note);
$puburl = $this->url($this->baseUrl, 'publication', "list", "id=" . $v['id']); 
?>
			<div class="col_right_title title_publication pr">
                <a class="more_index pa" href="<?php echo $puburl;?>"></a>
           </div>
           <div class="mod_publication pr con_right">
				<a id="pub_href" href="<?php echo $pub['url'];?>"><img id="pub_img" src="<?php echo $pub['image'];?>" height="170px" width="120px"></a>
                <div class="shadow pa"></div>
                <a id="pub_pre" class="arrowl_publication pa" title="上一个" href="#pre">上一个</a>
                <a id="pub_next" class="arrowr_publication pa" title="下一个" href="#next">下一个</a>
				<p id="pub_name"><?php echo $pub['name'];?></p>
           </div>
			<div class="col_right_title title_resources pr">
                <a class="more_index pa"  href="<?php echo $this->url($this->baseUrl, "article", "list", "id=" . $this->cfg['article_types']['tuzl']['id']);?>"></a>
           </div>
			<ul class="resources_right con_right">
			<?php
                foreach ($this->tuzl as $v){
                	$url = $this->url($this->baseUrl, "article", "show", "id=" . $v['aid']);
                	$time = strtotime($v['pubtime']);
                	if (time() - $time < 7 * 24 * 3600)
                		$new = ' new';
                	else 
                		$new = '';
                	
                	echo "<li><a href=\"{$url}\"><img src=\"{$this->baseUrl}/images/b.png\" class=\"icon_resources_right\" height=\"16px\" width=\"12px\">{$v['title']}</a></li>";
                }
                ?>
                </ul> 
			<ul class="resources_right con_right">
		<div class="flink">
				<select onchange="if (this.value != '')window.open(this.value);">
				<option value="" selected="selected">+Quick Links</option>
				<?php
				foreach ($this->links as $v){
					echo "<option value=\"{$v['url']}\">{$v['name']}</option>";
				}
				?>				          
                  </select>
		</div>
        <a class="login" href="<?php echo $this->url($this->baseUrl, "admincp", "index", "", "admin");?>">管理员入口</a>
			</ul>
        <div class="col_right_b oh"></div>
        </div>

<?php $this->render("footer.php");?>